﻿using System;

/*
 * Write an if statement that examines two integer variables and 
 * exchanges their values if the first one is greater than the second one.
 */

class ExchangeIntegersIfBigger
{
    static void Main(string[] args)
    {
        int a = 5;
        int b = 3;
        Console.WriteLine("Initial Values: a = {0} , b= {1}",a,b);
        
        if (a > b)
        {
            a = a + b;
            b = a - b;
            a = a - b;
        }

        Console.WriteLine("Final Values: a = {0} , b= {1}", a, b);
    }
}

